<?php
	$conn =mysql_connect("127.0.0.1","root","");
	$db = mysql_select_db("pronsweb",$conn);
	$sql = "select * from user";
	$hasil = mysql_query($sql,$conn);
	$query = "UPDATE user SET ID_USER= '$_POST[ID_USER]',ID_USERKAT= '$_POST[ID_USERKAT]',PASSWORD='$_POST[PASSWORD]',NAMADEPAN='$_POST[NAMADEPAN]'
             ,NAMABELAKANG='$_POST[NAMABELAKANG]',ALAMATUSER='$_POST[ALAMATUSER]',NOTELPUSER='$_POST[NOTELPUSER]',KOTAUSER='$_POST[KOTAUSER]',EMAILUSER='$_POST[EMAILUSER]',KODEPOSUSER='$_POST[KODEPOSUSER]' WHERE ID_USER='$_POST[ID_USER]'";
	$update=mysql_query($query);
		if($update){
			header('location:list_member.php');
					}
		else
			{
				echo $query;
					//echo "data gagal di update";
			}						
?>
